package com.tz.service.book.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tz.bean.Book;
import com.tz.bean.TzParams;
import com.tz.dao.book.IBookMapper;
import com.tz.service.book.IBookService;

@Service
public class BookServiceImpl implements IBookService{

	@Autowired
	private IBookMapper bookMapper;
	
	@Override
	public int save(Book book) {
		return bookMapper.save(book);
	}

	@Override
	public List<Book> listBooks(TzParams params) {
		return bookMapper.listBooks(params);
	}

	@Override
	public int update(TzParams params) {
		return bookMapper.update(params);
	}

	@Override
	public int delete(TzParams params) {
		return bookMapper.delete(params);
	}

	@Override
	public int count(TzParams params) {
		return bookMapper.count(params);
	}

}
